#include <iostream>
#include "MaxHeap.h"

using namespace std;

int main() {

	int in[] = {62,3,90,27,33,8,12,9,43,66};
	MaxHeap<int> test(100);
	for (int i = 0; i < 10;i++) {
		test.push(in[i]);
	}
	for (int i = 0; i < 10; i++) {
		in[i] = test.top();
		test.pop();
	}
	for (int i = 0; i < 10; i++) {
		cout << in[i] << " ";
	}
	cout << endl;
	system("pause");
	return 0;
}